package com.tpfinal.agenda.model;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Person extends Contact {

	private Date birthday;

	private int cellphone;

	public Person(int id, String name, String address, int phone, String email,
			Date birthday, int cellphone, City cityInfo) {
		super(id, name, address, phone, email, cityInfo);
		this.birthday = birthday;
		this.cellphone = cellphone;
	}

	public Person(String name, String address, int phone, String email,
			Date birthday, int cellphone, City cityInfo) {
		super(name, address, phone, email, cityInfo);
		this.birthday = birthday;
		this.cellphone = cellphone;
	}

	public Date getBirthday() {
		return birthday;
	}

	public String getBirthdayAsString() {
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
		return sdf.format(birthday);

	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public int getCellphone() {
		return cellphone;
	}

	public void setCellphone(int cellphone) {
		this.cellphone = cellphone;
	}

}
